<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>TZ-追梦</title>
    <style>
        * {
            margin: 0;
            padding: 0;
        }
        li{
            list-style: none;
        }
        #box{
            width:950px;
            height: 254px;
            margin: 100px auto;
            box-shadow: 0 0 12px #000;
            position: relative;

            overflow: hidden;
        }
        #box:hover ul{
            animation-play-state: paused;
        }
        #box ul{
            position: absolute;
            top:0;
            left:0;
            width: 1000%;
            animation: move 5s linear infinite;
        }
        #box ul li{
            width: 180px;
            height: 254px;
            margin-left: 10px;
            float: left;
        }

        @keyframes move {
            from{
                left: 0;
            }
            to{
                left:-950px;
            }
        }
    </style>
</head>
<body>
    <div id="box">
        <ul>
            <li><img src="img/1.jpg" alt=""></li>
            <li><img src="img/2.jpg" alt=""></li>
            <li><img src="img/3.jpg" alt=""></li>
            <li><img src="img/4.jpg" alt=""></li>
            <li><img src="img/5.jpg" alt=""></li>

            <li><img src="img/1.jpg" alt=""></li>
            <li><img src="img/2.jpg" alt=""></li>
            <li><img src="img/3.jpg" alt=""></li>
            <li><img src="img/4.jpg" alt=""></li>
            <li><img src="img/5.jpg" alt=""></li>
        </ul>
    </div>
</body>
</html>